package com.sj.anno;

import org.springframework.stereotype.Component;

//根据类名UserDao去找到类对应的对象，跟userDao123没关系。
@Component(value = "userDao123")
public class UserDao {
    public void add(){
        System.out.println("dao.............");
    }
}
